package demo5;

public class Test {
    public static void main(String[] args) {
        Student student1=new Student("dzj",100);
        Student student2=new Student("hzp",50);
        if(student1.compareTo(student2)>0){
            System.out.println(student1);
        }else{
            System.out.println(student2);
        }
    }
}
